package com.student.liu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.student.liu.cache.RedisCache;
import com.student.liu.entity.Goods;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 商品 Mapper
 */
@Mapper
@CacheNamespace(implementation = RedisCache.class, eviction = RedisCache.class)     //括号里的设置目的是将mybatis的二级缓存存储在Redis里面
public interface IGoodsMapper extends BaseMapper<Goods> {
}
